Skip to content

Update cookiecutter template#2

Merged
irod973 merged 13 commits intomainfrom
feature/update-cookiecutter
Dec 5, 2025
Merged

Update cookiecutter template#2
irod973 merged 13 commits intomainfrom
feature/update-cookiecutter

Conversation

@irod973
Copy link
Owner

@irod973 irod973 commented Dec 5, 2025

Overview

  • Adds three template apps: FastAPI, a Python package, and a Metaflow app.
  • Better parametrizes the inclusion of these apps so clients can pick which parts they want in their project
  • Update Dockerfile to utilize better uv practices
  • Parametrize docker-compose (albeit requires installing the corresponding dependencies for the apps)
  • Updated README

Testing

I didn't test thoroughly. Will leave it for debugging later if issues are encountered.

@irod973 irod973 self-assigned this Dec 5, 2025
@irod973 irod973 requested a review from Copilot December 5, 2025 05:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the cookiecutter template to support multiple project types (FastAPI, Metaflow, Python package) with configurable inclusion, improves Docker configuration to follow uv best practices, and parameterizes various project settings including coverage thresholds.

Key Changes:

  • Introduces conditional template generation for FastAPI, Metaflow, and Python package components with corresponding cookiecutter parameters
  • Updates Dockerfile to use multi-stage build with caching and proper uv integration
  • Parameterizes coverage threshold and adds post-generation hook to clean up unused components

Reviewed changes

Copilot reviewed 8 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
cookiecutter.json Adds configuration parameters for component inclusion and coverage threshold
hooks/post_gen_project.py New post-generation hook to remove unselected template components
{{cookiecutter.repository}}/Dockerfile Refactored to use uv best practices with build caching and multi-stage approach
{{cookiecutter.repository}}/docker-compose.yml Parameterized service definitions based on included components
{{cookiecutter.repository}}/pyproject.toml Adds development dependencies and ruff source configuration
{{cookiecutter.repository}}/README.md Updated usage instructions for parameterized template
{{cookiecutter.repository}}/tasks/check.just Parameterized coverage threshold
{{cookiecutter.repository}}/src/metaflow_app/spin_prototype.py New Metaflow example application

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"name": "Project Name",
"repository": "GitHub Repository",
"package": "Python Package",
"license": "Project License",
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'package' prompt was removed from prompts but the 'package' field still exists in the main configuration (line 6). If the package field should remain configurable, restore its prompt; otherwise, document that it defaults to the repository name.

Copilot uses AI. Check for mistakes.
@irod973 irod973 force-pushed the feature/update-cookiecutter branch from f92a52d to 324d1b4 Compare December 5, 2025 05:46
irod973 and others added 8 commits December 4, 2025 21:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@irod973 irod973 merged commit 19129e5 into main Dec 5, 2025
1 check passed
@irod973 irod973 deleted the feature/update-cookiecutter branch December 5, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant